package com.examination.service.projectModel;

import com.examination.dao.projectModel.ProjectDao;
import com.examination.entity.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ProjectService implements ProjectDao {
    @Autowired
    private ProjectDao projectDao;


    @Override
    public List<Project> findProject(Map map) {
        return projectDao.findProject(map);
    }

    @Override
    public long total(Map map) {
        return projectDao.total(map);
    }

    @Override
    public int insertProject(Map map) {
        return projectDao.insertProject(map);
    }

    @Override
    public int updateProject(Map map) {
        return projectDao.updateProject(map);
    }

    @Override
    public int updateProjectAccomplish(Map map) {
        return projectDao.updateProjectAccomplish(map);
    }

    @Override
    public int deleteProject(Map map) {
        return projectDao.deleteProject(map);
    }

    @Override
    public List<Project> selectProject(Map map) {
        return projectDao.selectProject(map);
    }

    @Override
    public Project findProjectById(Map map) {
        return projectDao.findProjectById(map);
    }
}
